package com.cqupt.pojo;
import java.util.Map;

/**
 * 响应消息类
 */
public class ResponseMessage {
    /**
     * status 状态 true or false
     * errorCode 错误码
     * content 响应内容
     */
    private boolean status;
    private String errorCode;
    private Map<String, Object> content;

    /**
     * 无参构造函数
     */
    public ResponseMessage() {
        super();
    }

    /**
     * 有参构造函数
     * @param status
     * @param errorCode
     * @param content
     */
    public ResponseMessage(boolean status, String errorCode, Map<String, Object> content) {
        this.status = status;
        this.errorCode = errorCode;
        this.content = content;
    }

    /**
     * 获取状态
     * @return
     */
    public boolean isStatus() {
        return status;
    }

    /**
     * 设置状态
     * @param status
     */
    public void setStatus(boolean status) {
        this.status = status;
    }

    /**
     * 获取错误码
     * @return
     */
    public String getErrorCode() {
        return errorCode;
    }

    /**
     * 设置错误码
     * @param errorCode
     */
    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }

    /**
     * 获取响应内容
     * @return
     */
    public Map<String, Object> getContent() {
        return content;
    }

    /**
     * 设置响应内容
     * @param content
     */
    public void setContent(Map<String, Object> content) {
        this.content = content;
    }
}
